-- GENERATED SPELL FOR [Withered Grimscale] --


function spell0_16403(pUnit, Event) --@Decayed Agility,n/a--
pUnit:FullCastSpellOnTarget(7901,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16403', 2000, 1)
end

function spell1_16403(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(10277,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16403', 500, 1)
end

function Sorts_16403(pUnit, Event)
local choix_sorts_16403 = math.random(0, 1)
if choix_sorts_16403 == 0 then
pUnit:RegisterEvent('spell0_16403', 1, 1)
end
if choix_sorts_16403 == 1 then
pUnit:RegisterEvent('spell1_16403', 1, 1)
end
end

function mob16403_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16403', math.random(1500, 3000), 1)
end

function mob16403_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16403_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16403_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16403, 1, 'mob16403_Action')
RegisterUnitEvent(16403, 2, 'mob16403_Leave')
RegisterUnitEvent(16403, 3, 'mob16403_Kill')
RegisterUnitEvent(16403, 4, 'mob16403_Die')
